package com.zxydsb;

public class demo03 {
    public static void main(String[] args) {
        superman s = new superman();
        fff(s);


        Fly f1 = new Fly() {
            @Override
            public void fly() {
                System.out.println("飞飞飞飞");
            }
        };
        fff(f1);

        fff(new Fly() {
            @Override
            public void fly() {
                System.out.println("飞飞飞飞飞");
            }
        });
    }

    public static void fff(Fly f) {
        f.fly();
    }
}
